package com.mall.czlr.app.service;


import com.mall.czlr.app.model.User;
import com.mall.czlr.base.common.PageObj;
import com.mall.czlr.base.service.IBaseService;

import java.util.Map;

public interface IUserService extends IBaseService<User> {
    Map<String, Object> register(String username, String password) throws Exception;
    Map<String, Object> login(String username, String password) throws Exception;
    void logout(String token);
    Map<String, Object> getUserInfo(Long userId);
    void updateUserInfo(Long userId, String nickname, String avatar);

    Map<String, Object> getUserList(PageObj obj);
}
